// ==========================================================================
// GFast自动生成controller操作代码。
// 生成日期：2024-04-24 10:28:10
// 生成路径: internal/app/business/controller/seats.go
// 生成人：周志雄
// desc:座位
// company:云南奇讯科技有限公司
// ==========================================================================

package controller

import (
	"context"
	"github.com/tiger1103/gfast/v3/api/v1/business"
	"github.com/tiger1103/gfast/v3/internal/app/business/service"
	systemController "github.com/tiger1103/gfast/v3/internal/app/system/controller"
)

type seatsController struct {
	systemController.BaseController
}

var Seats = new(seatsController)

//// List 列表
//func (c *seatsController) List(ctx context.Context, req *business.SeatsSearchReq) (res *business.SeatsSearchRes, err error) {
//	res, err = service.Seats().List(ctx, req)
//	return
//}
//
//// Get 获取座位
//func (c *seatsController) Get(ctx context.Context, req *business.SeatsGetReq) (res *business.SeatsGetRes, err error) {
//	res = new(business.SeatsGetRes)
//	res.SeatsInfoRes, err = service.Seats().GetById(ctx, req.Id)
//	return
//}
//
//// Add 添加座位
//func (c *seatsController) Add(ctx context.Context, req *business.SeatsAddReq) (res *business.SeatsAddRes, err error) {
//	err = service.Seats().Add(ctx, req)
//	return
//}
//
//// Edit 修改座位
//func (c *seatsController) Edit(ctx context.Context, req *business.SeatsEditReq) (res *business.SeatsEditRes, err error) {
//	err = service.Seats().Edit(ctx, req)
//	return
//}
//
//// Delete 删除座位
//func (c *seatsController) Delete(ctx context.Context, req *business.SeatsDeleteReq) (res *business.SeatsDeleteRes, err error) {
//	err = service.Seats().Delete(ctx, req.Ids)
//	return
//}

// 选择座位
func (c *seatsController) SeatsSetting(ctx context.Context, req *business.SeatsSettingReq) (res *business.SeatsSettingRes, err error) {
	return service.Seats().SeatsSetting(ctx, req)
}

// 取消订单
func (c *seatsController) Refund(ctx context.Context, req *business.RefundReq) (res *business.RefundRes, err error) {
	return service.Seats().Refund(ctx, req)
}
